<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include.inc.jsp" %>
<form id="pagerForm" method="post" action="demo_page1.html">
    <input type="hidden" name="status" value="${param.status}">
    <input type="hidden" name="keywords" value="${param.keywords}"/>
    <input type="hidden" name="pageNum" value="1"/>
    <input type="hidden" name="numPerPage" value="${model.numPerPage}"/>
    <input type="hidden" name="orderField" value="${param.orderField}"/>
</form>


<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="demo_page1.html" method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>
                        我的客户：<input type="text" name="keyword"/>
                    </td>
                    <td>
                        <select class="combox" name="province">
                            <option value="">所有省市</option>
                            <option value="北京">北京</option>
                            <option value="上海">上海</option>
                            <option value="天津">天津</option>
                            <option value="重庆">重庆</option>
                            <option value="广东">广东</option>
                        </select>
                    </td>
                    <td>
                        建档日期：<input type="text" class="date" readonly="true"/>
                    </td>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">检索</button>
                            </div>
                        </div>
                    </li>
                    <li><a class="button" href="demo_page6.html" target="dialog" mask="true"
                           title="查询框"><span>高级检索</span></a></li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="/management!toAdd" target="dialog" title="用户添加"  width=800><span>添加</span></a></li>
            <li><a class="delete" href="/management!deleteUser?user.id={sid_user}" target="ajaxTodo"
                   title="确定要删除吗?"><span>删除</span></a></li>
            <li><a class="edit" href="/management!toAdd?user.id={sid_user}" target="dialog" title="用户修改" rel="userNav" width=800><span>修改</span></a></li>
            <li class="line">line</li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="138">
        <thead>
        <tr>
            <th width="20"></th>
            <th width="100">员工姓名</th>
            <th width="100">员工账号</th>
            <th width="50">性别</th>
            <th width="100">联系电话</th>
            <th width="80">qq号码</th>
            <th width="80">邮件</th>
            <th width="auto">住址</th>
            <th width="80">岗位名称</th>
            <th width="100">身份证号码</th>
            <th width="80">入职时间</th>
            <th width="80">状态</th>
        </tr>
        </thead>
        <tbody>

        <c:forEach items="${list}" var="user" varStatus="index">
            <tr target="sid_user" rel="${user.id}">
                <td>${index.index+1}</td>
                <td>${user.ename}</td>
                <td>${user.username}</td>
                <td>${user.sex}</td>
                <td>${user.phone}</td>
                <td>${user.qq}</td>
                <td>${user.email}</td>
                <td>${user.address}</td>
                <td>${user.positionName}</td>
                <td>${user.idCard}</td>
                <td>${user.inductionDate}</td>
                <td>
                    <c:choose>
                        <c:when test="${user.status==0}">
                            在职
                        </c:when>
                        <c:otherwise>
                            离职
                        </c:otherwise>
                    </c:choose>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共${totalCount}条</span>
        </div>

        <div class="pagination" targetType="navTab" totalCount="200" numPerPage="20" pageNumShown="10"
             currentPage="1"></div>

    </div>
</div>
